is derived from the combining values of 1.7 and
i. Since we know that both
1.7 and
i are also simple expressions which each have their own value, they can be combined to obtain a value.
In the expression above, the resulting value is determined by adding the values of the two simpler expressions. The expression uses an operator, in this case the plus sign, to perform an operation (addition) on the simpler expressions and to combine them into a more complex expression.
The expressions combined by the plus sign in the example above can also be referred to as operands. Operators are usually grouped by the number of operands that they require in order to perform their intended operations. VectorScript supports two types of operators, unary operators, which require a single operand, and binary operators, which require two operands.
Each operator produces a resulting value whose data type is determined both by the operator and the operands from which the value was derived. Operators may have restrictions on the types of operands with which they are compatible, and all these factors impact the data type of the resulting value.